package com.carbohydrate42.kotlin_compose_demo.api

import com.carbohydrate42.kotlin_compose_demo.config.RetrofitConfig
import com.carbohydrate42.kotlin_compose_demo.dto.base.Result
import retrofit2.Response
import retrofit2.http.GET
import retrofit2.http.Query

interface TestApi {
    @GET("test/test1")
    suspend fun test1(@Query("version") version: String): Response<Result<String>>

    companion object {
        val instance: TestApi by lazy { RetrofitConfig.instance.create(TestApi::class.java) }
    }
}